package cn.tutu.blockchain.machinestatus.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cn.tutu.blockchain.base.BaseDao;
import cn.tutu.blockchain.machinebackups.entity.MachineBackups;
import cn.tutu.blockchain.machinestatus.entity.MachineStatus;

@Mapper
public interface MachineStatusDao extends BaseDao<MachineStatus> {

	/**
	 * 找出非本矿机并且备份次数少于2的矿机文件信息
	 * 
	 * @param machineId
	 * @return
	 */
	List<MachineBackups> findFileHashByMacIdNot(String machineId);

	MachineBackups findRootHashByMacId(String machineId);

}
